package com.sunlong.jiangwei.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 孙龙
 * @since 2021-02-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class JwUserAddresslist implements Serializable {


    /**
     * 用户地址列表id
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long userAddressId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 收货人名称
     */
    private String consigneeName;

    /**
     * 收货人手机号
     */
    private String consigneePhone;

    /**
     * 收货详细地址
     */
    private String consigneeAddress;

    public JwUserAddresslist(Long userAddressId) {
        this.userAddressId = userAddressId;
    }
}
